#include"Server.hpp"

int main()
{
    Server s;
    std::cout<<"Server"<<std::endl;
    if(s.openreadpipe()==false)
    {
        std::cout<<"open server fail"<<std::endl;
        return -1;
    }
    char buf[bufsize+1];
    while(s.ReceiveMessage(buf))
    {
        std::cout<<"Client call# ";
        std::cout<<buf<<std::endl;
    }
    s.closepipe();
    return 0;
}